<?php
/**
 * Created by PhpStorm.
 * User: raoho
 * Date: 2018/1/3
 * Time: 18:29
 */

namespace Xcx\Model;

use Think\Model;
use Xcx\Common\ErrorCode;

class CommonModel extends Model {

    public $uid;

    /**
     * 获取session里面的用户ID
     * @return mixed
     */
    public function getUid()
    {
        return $_SESSION['userInfo']['uid'];
    }
}